package com.web.service.impl;

import com.web.dao.CourseDAO;
import com.web.dao.impl.CourseDAOImpl;
import com.web.entity.Course;
import com.web.service.CourseService;

import java.util.List;

/**
 * @author Songzzz
 * @Description
 * @Date 2025/3/6 17:21
 */
public class CourseServiceImpl implements CourseService {
    private CourseDAO courseDAO=new CourseDAOImpl();
    @Override
    public List<Course> findAllCourse(){
        System.out.println("CourseServiceImpl.findAllCourse is called!");
        return courseDAO.selectAllCourse();
    }

    @Override
    public Course addCourses(Integer id,String name,Integer time,Integer point){
        return courseDAO.addCourse(id,name,time,point);
    }
}
